package com.xuecheng.learning.feignclient;

import com.xuecheng.content.model.po.Teachplan;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@FeignClient(value = "content-api",fallbackFactory = TeachplanServiceClientFallbackFactory.class)
public interface TeachplanServiceClient {

    @ResponseBody
    @RequestMapping("/teachplan/isFree")
    public Teachplan getTeachplanisFree(Long teachplanId);
}
